/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package deatax.display;

import com.jogamp.opengl.util.texture.TextureData;

/**
 *
 * @author pson
 */
public class TextureInfo {

        TextureData td;
        com.jogamp.opengl.util.texture.Texture tex;

        public TextureInfo(TextureData td) {
            this.td = td;
            this.tex = new com.jogamp.opengl.util.texture.Texture(this.td);
        }

        public void reload() {
            this.tex.updateImage(td);
        }

        public void bind() {
            this.tex.bind();
        }
    }